set(LLVM_TARGET_DEFINITIONS Options.td)
set(BS_FEAT_LIST)
if(BISHENGIR_ENABLE_TORCH_CONVERSIONS)
  list(APPEND BS_FEAT_LIST "-DBISHENGIR_ENABLE_TORCH_CONVERSIONS")
endif()
if(BISHENGIR_PUBLISH)
  list(APPEND BS_FEAT_LIST "-DBISHENGIR_PUBLISH")
endif()
bishengir_options_tablegen(CompileOptions.cpp.inc -gen-compile-options ${BS_FEAT_LIST})
bishengir_options_tablegen(CompileConfigs.cpp.inc -gen-compile-configs ${BS_FEAT_LIST})
bishengir_options_tablegen(PassOptions.cpp.inc -gen-pass-options ${BS_FEAT_LIST})
bishengir_options_tablegen(PassPipelineOptions.cpp.inc -gen-pass-pipeline-options ${BS_FEAT_LIST})
bishengir_options_tablegen(ConfigUtils.cpp.inc -gen-configs-and-options-conversion ${BS_FEAT_LIST})
add_public_tablegen_target(BiShengIROptionsIncGen)
add_dependencies(mlir-headers BiShengIROptionsIncGen)
